package rock.registry;

import rock.common.annotation.SPI;
import rock.remoting.dto.RpcRequest;

import java.net.InetSocketAddress;

@SPI
public interface ServiceDiscovery {
    /**
     * 服务发现 using rpc request
     * @param request rpc请求
     * @return service address
     */
    InetSocketAddress lookup(RpcRequest request);
}
